from numpy import *
import glob
from pylab import *
from scipy import *
import matplotlib
from pylab import *

#for i in glob.glob('*.txt'):
# name = i[:7]
# x,y=loadtxt(i, usecols=(0,1), unpack = True)
# plot(x,y, label = name)
# leg = legend(loc = 3, prop={'size':6}, markerscale = 3, numpoints = 1)
# xlim(0.5,0.9)
# ylim(0.8,1.3)
#show()


for k in glob.glob('*.txt'):
 name = k[:7]
 x,y=loadtxt(k, usecols=(0,1), unpack = True)
 plot(x,y, label = name)
 leg = legend(loc = 3, prop={'size':6}, markerscale = 3, numpoints = 1)
 xlim(0.5,0.9)
 ylim(0.8,1.3)
 show()

savefig('lops.pdf', dpi = 200)

